package to;

public class DriverTO {
	private String phone;
	private String carRegNum;
	private String dlLicenseNum;
	private String picLoc;
	private int status;
	private int taxiType;
	
	public DriverTO(){}

	public DriverTO(String phone, String carRegNum, String dlLicenseNum,
			String picLoc, int status, int taxiType) {
		super();
		this.phone = phone;
		this.carRegNum = carRegNum;
		this.dlLicenseNum = dlLicenseNum;
		this.picLoc = picLoc;
		this.status = status;
		this.taxiType = taxiType;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCarRegNum() {
		return carRegNum;
	}

	public void setCarRegNum(String carRegNum) {
		this.carRegNum = carRegNum;
	}

	public String getDlLicenseNum() {
		return dlLicenseNum;
	}

	public void setDlLicenseNum(String dlLicenseNum) {
		this.dlLicenseNum = dlLicenseNum;
	}

	public String getPicLoc() {
		return picLoc;
	}

	public void setPicLoc(String picLoc) {
		this.picLoc = picLoc;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getTaxiType() {
		return taxiType;
	}

	public void setTaxiType(int taxiType) {
		this.taxiType = taxiType;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((carRegNum == null) ? 0 : carRegNum.hashCode());
		result = prime * result
				+ ((dlLicenseNum == null) ? 0 : dlLicenseNum.hashCode());
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
		result = prime * result + ((picLoc == null) ? 0 : picLoc.hashCode());
		result = prime * result + status;
		result = prime * result + taxiType;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DriverTO other = (DriverTO) obj;
		if (carRegNum == null) {
			if (other.carRegNum != null)
				return false;
		} else if (!carRegNum.equals(other.carRegNum))
			return false;
		if (dlLicenseNum == null) {
			if (other.dlLicenseNum != null)
				return false;
		} else if (!dlLicenseNum.equals(other.dlLicenseNum))
			return false;
		if (phone == null) {
			if (other.phone != null)
				return false;
		} else if (!phone.equals(other.phone))
			return false;
		if (picLoc == null) {
			if (other.picLoc != null)
				return false;
		} else if (!picLoc.equals(other.picLoc))
			return false;
		if (status != other.status)
			return false;
		if (taxiType != other.taxiType)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "DriverTO [phone=" + phone + ", carRegNum=" + carRegNum
				+ ", dlLicenseNum=" + dlLicenseNum + ", picLoc=" + picLoc
				+ ", status=" + status + ", taxiType=" + taxiType + "]";
	}

}
